package ${configure.packageName}.${generatorTable.moudleName}.dao.${generatorTable.fileDirName};

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ${configure.packageName}.${generatorTable.moudleName}.model.${generatorTable.fileDirName}.${generatorTable.upperClassName};
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
* @description ${generatorTable.tableComment!""}Dao层
* @author ${configure.authorName}
* @date ${.now?string('yyyy-MM-dd')}
*/
public interface ${generatorTable.upperClassName}Dao extends CyysBaseMapper<${generatorTable.upperClassName}> {
    /**
    * 根据父类查询数据
    *
    * @param parentId
    * @return
    * @throws Exception
    */
    List<${generatorTable.upperClassName}> getByParentId(@Param(value = "parentId") String parentId)throws Exception;

    /**
    * 根据父类查询子的数量
    *
    * @param parentId
    * @return
    * @throws Exception
    */
    int chlidNum(@Param(value = "parentId") String parentId)throws Exception;

    /**
    * 根据ID数组查询数据，配合数据删除进行使用
    *
    * @param ids
    * @return
    * @throws Exception
    */
    List<${generatorTable.upperClassName}> listByIds(@Param(value = "ids") String[] ids) throws Exception;
}
